home *** CD-ROM | disk | FTP | other *** search
- //
- // Generated by Microsoft (R) D3DX9 Shader Compiler 9.04.91.0000
- //
- // fxc /T ps_2_0 /DCGC=0 /Fc ..\..\WorkDir\Shaders\ps\ps2_0_hdr_lum_final.psh
- // ps2_0_hdr_lum_final.cg
- //
- //
- // Parameters:
- //
- // sampler2D $Tex0;
- // float4 $TexCoordOffset[16];
- //
- //
- // Registers:
- //
- // Name Reg Size
- // --------------- ----- ----
- // $TexCoordOffset c0 16
- // $Tex0 s0 1
- //
-
- ps_2_0
- def c16, 0.0901684389, 1, 0, 0
- dcl t0.xy
- dcl_2d s0
- add r9.xy, t0, c0
- add r10.xy, t0, c1
- add r8.xy, t0, c2
- add r7.xy, t0, c3
- add r6.xy, t0, c4
- add r5.xy, t0, c5
- add r4.xy, t0, c6
- add r3.xy, t0, c7
- add r2.xy, t0, c8
- add r1.xy, t0, c9
- add r0.xy, t0, c10
- texld r9, r9, s0
- texld r10, r10, s0
- texld r8, r8, s0
- texld r7, r7, s0
- texld r6, r6, s0
- texld r5, r5, s0
- texld r4, r4, s0
- texld r3, r3, s0
- texld r2, r2, s0
- texld r1, r1, s0
- texld r0, r0, s0
- add r0.w, r9.x, r10.x
- add r0.w, r8.x, r0.w
- add r0.w, r7.x, r0.w
- add r0.w, r6.x, r0.w
- add r0.w, r5.x, r0.w
- add r0.w, r4.x, r0.w
- add r4.xy, t0, c11
- add r0.w, r3.x, r0.w
- add r3.xy, t0, c12
- add r0.w, r2.x, r0.w
- add r2.xy, t0, c13
- add r0.w, r1.x, r0.w
- add r1.xy, t0, c14
- add r5.w, r0.x, r0.w
- add r0.xy, t0, c15
- texld r4, r4, s0
- texld r3, r3, s0
- texld r2, r2, s0
- texld r1, r1, s0
- texld r0, r0, s0
- add r0.w, r5.w, r4.x
- add r0.w, r3.x, r0.w
- add r0.w, r2.x, r0.w
- add r0.w, r1.x, r0.w
- add r0.w, r0.x, r0.w
- mul r0.w, r0.w, c16.x
- exp r0.xyz, r0.w
- mov r0.w, c16.y
- mov oC0, r0
-
- // approximately 51 instruction slots used (16 texture, 35 arithmetic)
-